.class public Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;
.super Les/s80;
.source "RemoteSynchronizer.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "c"
.end annotation


# instance fields
.field protected D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

.field private E:Les/z60;

.field private F:Z

.field private G:J

.field private H:J


# direct methods
.method public constructor <init>(Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$e;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Les/s80;-><init>()V

    const/4 p2, 0x0

    .line 2
    iput-object p2, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->E:Les/z60;

    const/4 p2, 0x0

    .line 3
    iput-boolean p2, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->F:Z

    .line 4
    iput-object p1, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->G:J

    return-wide v0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->F:Z

    return p1
.end method

.method static synthetic b(Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->H:J

    return-wide v0
.end method

.method static synthetic c(Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->F:Z

    return p0
.end method


# virtual methods
.method protected C()V
    .locals 3

    .line 1
    :try_start_0
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iget-object v2, v2, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->tmpPath:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/estrongs/fs/f;->g(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/fs/f;->a(Lcom/estrongs/fs/g;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    const/4 v1, 0x0

    iput-object v1, v0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->tmpPath:Ljava/lang/String;
    :try_end_0
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 3
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return-void
.end method

.method public D()Les/s80;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->E:Les/z60;

    return-object v0
.end method

.method public a(Les/w80;)V
    .locals 2

    .line 3
    invoke-super {p0, p1}, Les/s80;->a(Les/w80;)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->E:Les/z60;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Les/s80;->m()I

    move-result v0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->E:Les/z60;

    invoke-virtual {v0, p1}, Les/z60;->a(Les/w80;)V

    :cond_0
    return-void
.end method

.method public s()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->E:Les/z60;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Les/s80;->m()I

    move-result v0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->E:Les/z60;

    invoke-virtual {v0}, Les/z60;->s()V

    .line 3
    :cond_0
    invoke-super {p0}, Les/s80;->s()V

    return-void
.end method

.method public y()Z
    .locals 9

    .line 1
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iget-object v1, v1, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->path:Ljava/lang/String;

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2, v2}, Lcom/estrongs/fs/f;->a(Ljava/lang/String;ZZ)Lcom/estrongs/fs/g;

    move-result-object v0

    if-nez v0, :cond_0

    return v2

    .line 2
    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iget-object v1, v1, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->tmpPath:Ljava/lang/String;

    const/4 v3, 0x1

    if-eqz v1, :cond_2

    const/4 v1, 0x0

    .line 3
    :try_start_0
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v4

    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v5

    iget-object v6, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iget-object v6, v6, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->tmpPath:Ljava/lang/String;

    invoke-virtual {v5, v6}, Lcom/estrongs/fs/f;->g(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/estrongs/fs/f;->a(Lcom/estrongs/fs/g;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 4
    iput-boolean v3, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->F:Z
    :try_end_0
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    goto :goto_1

    :catch_0
    move-exception v4

    .line 5
    :try_start_1
    invoke-virtual {v4}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 6
    :cond_1
    :goto_0
    iget-object v4, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iput-object v1, v4, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->tmpPath:Ljava/lang/String;

    goto :goto_2

    :goto_1
    iget-object v2, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iput-object v1, v2, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->tmpPath:Ljava/lang/String;

    .line 7
    throw v0

    .line 8
    :cond_2
    :goto_2
    iget-object v1, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iget-wide v4, v1, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->lastModified:J

    iput-wide v4, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->G:J

    .line 9
    iget-wide v4, v1, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->size:J

    iput-wide v4, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->H:J

    .line 10
    invoke-interface {v0}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v4

    iget-wide v6, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->G:J

    cmp-long v1, v4, v6

    if-nez v1, :cond_6

    invoke-interface {v0}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v4

    iget-wide v6, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->H:J

    cmp-long v1, v4, v6

    if-eqz v1, :cond_3

    goto/16 :goto_4

    .line 11
    :cond_3
    invoke-interface {v0}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->x(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 12
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-interface {v0}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v5, ".new"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    if-nez v1, :cond_4

    const-string v5, ""

    goto :goto_3

    :cond_4
    move-object v5, v1

    :goto_3
    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 13
    invoke-static {v4}, Lcom/estrongs/fs/util/f;->j(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 14
    iget-object v5, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iput-object v4, v5, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->tmpPath:Ljava/lang/String;

    .line 15
    invoke-static {}, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer;->a()Ljava/util/HashMap;

    move-result-object v4

    monitor-enter v4

    .line 16
    :try_start_2
    invoke-static {}, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer;->d()V

    .line 17
    monitor-exit v4
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    .line 18
    new-instance v4, Les/z60;

    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v5

    new-instance v6, Lcom/estrongs/fs/impl/local/d;

    new-instance v7, Ljava/io/File;

    iget-object v8, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iget-object v8, v8, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->cachePath:Ljava/lang/String;

    invoke-direct {v7, v8}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-direct {v6, v7}, Lcom/estrongs/fs/impl/local/d;-><init>(Ljava/io/File;)V

    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v7

    iget-object v8, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iget-object v8, v8, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->tmpPath:Ljava/lang/String;

    invoke-static {v8}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Lcom/estrongs/fs/f;->g(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object v7

    iget-object v8, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->D:Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;

    iget-object v8, v8, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$RemoteFile;->tmpPath:Ljava/lang/String;

    invoke-static {v8}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-direct {v4, v5, v6, v7, v8}, Les/z60;-><init>(Lcom/estrongs/fs/f;Lcom/estrongs/fs/g;Lcom/estrongs/fs/g;Ljava/lang/String;)V

    iput-object v4, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->E:Les/z60;

    .line 19
    invoke-virtual {v4, v2}, Les/z60;->f(Z)V

    .line 20
    iget-object v4, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->E:Les/z60;

    invoke-virtual {v4, v3}, Les/z60;->g(Z)V

    .line 21
    iget-object v4, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->E:Les/z60;

    invoke-virtual {p0}, Les/s80;->h()Ljava/util/List;

    move-result-object v5

    invoke-virtual {v4, v5}, Les/s80;->a(Ljava/util/List;)V

    .line 22
    iget-object v4, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->E:Les/z60;

    new-instance v5, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c$a;

    invoke-direct {v5, p0, v1, v0}, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c$a;-><init>(Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;Ljava/lang/String;Lcom/estrongs/fs/g;)V

    invoke-virtual {v4, v5}, Les/s80;->a(Les/y80;)V

    .line 23
    iget-object v0, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->E:Les/z60;

    invoke-virtual {v0, v2}, Les/s80;->b(Z)V

    .line 24
    iget-object v0, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->E:Les/z60;

    invoke-virtual {v0}, Les/s80;->m()I

    move-result v0

    const/4 v1, 0x4

    if-eq v0, v1, :cond_5

    .line 25
    iget-object v0, p0, Lcom/estrongs/android/pop/view/utils/RemoteSynchronizer$c;->E:Les/z60;

    invoke-virtual {v0}, Les/s80;->l()Les/u80;

    move-result-object v0

    .line 26
    iget v1, v0, Les/u80;->a:I

    iget-object v0, v0, Les/u80;->b:Ljava/lang/Object;

    invoke-virtual {p0, v1, v0}, Les/s80;->b(ILjava/lang/Object;)V

    return v2

    :cond_5
    return v3

    :catchall_1
    move-exception v0

    .line 27
    :try_start_3
    monitor-exit v4
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    throw v0

    :cond_6
    :goto_4
    return v2
.end method
